import service from '../utils/request'

//根据内容、昵称、分页去模糊查询评论
export const getCommentsBySearch = (params:any) => {
    return service({
        url:'/api/comment/search',
        method:'get',
        params
    })
}
//根据id删除评论
export const deleteCommentById = (params:any) => {
    return service({
        url:'/api/comment/delete/one',
        method:'post',
        params
    }) 
}
//批量删除
export const deleteCommentAmount = (params:any) => {
    return service({
        url:'/api/comment/delete/amount',
        method:'post',
        params
    })
}
//根据id查看评论详情
export const getCommentDetailById = (params:any) => {
    return service({
        url:'/api/comment/detail',
        params
    })
}